package routers

import (
	"ginBolg/api"
	"ginBolg/middleware"
)

func (router RouterGroup) ImagesRouter() {
	app := api.ApiGroupApp.ImagesApi
	router.GET("images", middleware.JwtAuth(), app.ImageListView)
	router.GET("images_names", middleware.JwtAuth(), app.ImageNameListView)
	router.POST("images", middleware.JwtAuth(), app.ImageUploadView)
	router.DELETE("images", middleware.JwtAuth(), app.ImageRemoveView)
}
